package com.peaker.advertisingpro.base

import android.app.Application
import com.peaker.advertisingpro.utils.LogToFile
import com.peaker.advertisingpro.utils.SPUtil
import com.peaker.advertisingpro.utils.SmdtManagerUtils
import com.peaker.advertisingpro.utils.ToastUtils


class MyApplication : Application() {

    companion object {
        private var instance: MyApplication? = null
        fun instance() = instance!!
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
        SmdtManagerUtils.init(this)
        SPUtil.initSpUtils(this)
        ToastUtils.initToast(this)
        LogToFile.init(this)
//        CrashHandler.instance.initH(this)
    }


}